import { useEffect } from "react";
import "./index.css";
import { Outlet, useNavigate } from "react-router-dom";
import { invoke } from "@tauri-apps/api/core";
function App() {
  let navigate = useNavigate();
  localStorage.setItem("navigate", navigate);

  //窗口被创建后
  useEffect(() => {
    const load_state = async () => {
      // let res = await invoke("get_user_state");
      // console.log(res);
    };
    load_state();
  }, []);
  return (
    <div className="w-[100vw] h-[100vh]">
      <Outlet></Outlet>
    </div>
  );
}

export default App;
